﻿using System;

namespace Enring.Web.Account
{
    public partial class Login : System.Web.UI.Page
    {

        protected void Page_Load(object sender, EventArgs e)
        {
            btnCreate.Click += new EventHandler(btnCreate_Click);
        }

        void btnCreate_Click(object sender, EventArgs e)
        {
            if (EnringContext.Current.Login(txtUser.Text, txtPass.Text,chkRemamber.Checked ))
                Response.Redirect("default.aspx");
            else
                labMess.Text = "登陆失败！";
            
        }
    }
}
